package unwdmi.dto;

/**
 * @class StationDTO
 * @author Michel
 * Data transfer object for holding station data
 */
public class StationDTO {

	private int id;
	private double longitude, latitude, elevation; 
	private String name, country;
	
	/**********************
	 *** GLOBAL METHODS ***
	 *********************/
	
	/**
	 * @method StationDTO (Constructor)
	 * @param id
	 * @param longitude
	 * @param latitude
	 * @param elevation
	 * @param name
	 * @param country
	 */
	public StationDTO(int id, double longitude, double latitude, double elevation, String name, String country) {
		this.setID(id);
		this.setLongitude(longitude);
		this.setLatitude(latitude);
		this.setElevation(latitude);
		this.setName(name);
		this.setCountry(country);
	};
	
	/**
	 * @method StationDTO Constructor
	 */
	public StationDTO() {
		//
	};
	
	@Override
	public String toString() {
		String attributes = "";
		attributes += "\n ID        \t : " + this.id;
		attributes += "\n LONGITUDE \t : " + this.longitude;
		attributes += "\n LATITUDE  \t : " + this.latitude;
		attributes += "\n ELEVATION \t : " + this.elevation;
		attributes += "\n NAME      \t : " + this.name;
		attributes += "\n COUNTRY   \t : " + this.country;
		return attributes;
	};
	
	/**********************
	 *** SETTER METHODS ***
	 *********************/
	
	public void setID(int id) {
		this.id = id;
	};
	
	public void setLongitude(double longitude) {
		this.longitude = longitude;
	};

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	};
	
	public void setElevation(double latitude) {
		this.latitude = latitude;
	};
	
	public void setName(String name) {
		this.name = name;
	};
	
	public void setCountry(String country) {
		this.country = country;
	};
	
	/**********************
	 *** GETTER METHODS ***
	 *********************/
	
	public int getID() {
		return this.id;
	};
	
	public double getLongitude() {
		return this.longitude;
	};

	public double getLatitude() {
		return this.latitude;
	};
	
	public double getElevation() {
		return this.elevation;
	};
	
	public String getName() {
		return this.name;
	};
	
	public String getCountry() {
		return this.country;
	};
	
}
